import java.util.Scanner;

public class home1 {
    /**
     * 使用冒泡排序对输入的5名学员成绩进行降序排列
     */
    public static void main(String[] args) {
        Scanner mb = new Scanner(System.in);
        System.out.print("请输入数字：");
        int[] a = new int[5];
        //输入数字
        for (int i = 0; i < 5; i++) {
            a[i] = mb.nextInt();
        }
        //冒泡
        for (int i = 0; i < 5; i++) {
            for (int j = 0; j < a.length - 1; j++) {
                if (a[j] < a[j + 1]) {
                    //比较大小排序
                    int c;
                    c = a[j];
                    a[j] = a[j + 1];
                    a[j + 1] = c;
                }
            }
        }
        //输出排序数字
        for (int i = 0; i < a.length; i++) {
            if (i == a.length - 1) {
                System.out.println(a[i]);
            } else {
                System.out.print(a[i] + ",");
            }
        }
    }
}